﻿using SqlSugar;

namespace ProjectScheduling_web.model
{
    /// <summary>
    /// 排期数据
    /// </summary>
    [SugarTable("PreparedData")]
    public class PreparedData : BClass
    {
        public int ProjectId { get; set; }
        public DateTime FromDate { get; set; }
        public DateTime ToDate { get; set; }
        public int Days { get; set; }
        public DateTime CreateTime { get; set; }
        [Navigate(NavigateType.OneToMany, nameof(PreparedStaff.PreparedId))]
        public List<PreparedStaff>? PrepardStaffs { get; set; }
        /// <summary>
        /// 是否排期已结束
        /// </summary>
        public bool IsEnd { get; set; }
        /// <summary>
        /// 是否新排期（新排期不再判断4小时）
        /// </summary>
        public bool IsNew { get; set; }
    }
}
